/**
 * DietXM.java
 * Nov 18, 2013
 * Copyright: phongtdse60732@fpt.edu.vn
 */
package XMLEntities;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author Lubu
 * @version 1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Dish", propOrder = { "id", "name" })
public class DietXM {
	@XmlAttribute(required = true)
	private int id;
	@XmlElement(required = true)
	private String name;
	public DietXM() {
		super();
		// TODO Auto-generated constructor stub
	}
	public DietXM(int id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	/**
	 * Get value of the id
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * Set value for the id
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * Get value of the name
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * Set value for the name
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
}
